#!/bin/bash

# 安装Cython
pip install cython

# 修改文件后缀名为.pyx
find ./ -type f -name "*.py" -exec bash -c 'mv "$1" "${1%.py}.pyx"' _ {} \;

# 编译并安装项目
python setup.py build_ext --inplace
python setup.py install